package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class CalcularPrecioTemporada extends javax.swing.JFrame {
	private JDesktopPane jDesktopPane1;
	private JLabel jLabel2;
	private JTextField Codigo;
	private JLabel jLabel3;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JButton Cancelar;
	private JTextField total;
	private JButton Aceptar;
	private JLabel jLabel6;
	private JTextField precio;
	private JTextField Conjunto;
	private JButton Buscar;
	private JLabel jLabel1;
	private CalcularPrecioTemporada app;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				CalcularPrecioTemporada inst = new CalcularPrecioTemporada();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public CalcularPrecioTemporada() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jDesktopPane1 = new JDesktopPane();
				getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
				{
					jLabel1 = new JLabel();
					jDesktopPane1.add(jLabel1);
					jLabel1.setText("Calcular Precio Temporada");
					jLabel1.setBounds(168, 12, 166, 20);
				}
				{
					jLabel2 = new JLabel();
					jDesktopPane1.add(jLabel2);
					jLabel2.setText("Codigo:");
					jLabel2.setBounds(21, 57, 58, 16);
				}
				{
					Codigo = new JTextField();
					jDesktopPane1.add(Codigo);
					Codigo.setBounds(91, 54, 87, 23);
				}
				{
					Buscar = new JButton();
					jDesktopPane1.add(Buscar);
					Buscar.setText("Buscar");
					Buscar.setBounds(224, 54, 87, 23);
				}
				{
					jLabel3 = new JLabel();
					jDesktopPane1.add(jLabel3);
					jLabel3.setText("Conjunto:");
					jLabel3.setBounds(21, 105, 70, 16);
				}
				{
					Conjunto = new JTextField();
					jDesktopPane1.add(Conjunto);
					Conjunto.setBounds(91, 102, 107, 23);
				}
				{
					jLabel4 = new JLabel();
					jDesktopPane1.add(jLabel4);
					jLabel4.setText("Precio:");
					jLabel4.setBounds(21, 154, 58, 16);
				}
				{
					precio = new JTextField();
					jDesktopPane1.add(precio);
					precio.setBounds(91, 154, 87, 23);
				}
				{
					jLabel5 = new JLabel();
					jDesktopPane1.add(jLabel5);
					jLabel5.setText("+ Adicion 15%");
					jLabel5.setBounds(216, 157, 103, 16);
				}
				{
					jLabel6 = new JLabel();
					jDesktopPane1.add(jLabel6);
					jLabel6.setText("Total: $");
					jLabel6.setBounds(21, 203, 58, 16);
				}
				{
					total = new JTextField();
					jDesktopPane1.add(total);
					total.setBounds(91, 200, 87, 23);
				}
				{
					Aceptar = new JButton();
					jDesktopPane1.add(Aceptar);
					Aceptar.setText("Aceptar");
					Aceptar.setBounds(224, 223, 87, 23);
				}
				{
					Cancelar = new JButton();
					jDesktopPane1.add(Cancelar);
					Cancelar.setText("Cancelar");
					Cancelar.setBounds(334, 223, 85, 23);
				}
			}
			app=this;
			Cancelar.addActionListener(new ActionListener() {
				
				@Override
				public void actionPerformed(ActionEvent e) {
					// TODO Auto-generated method stub
					app.dispose();
				}
				
			});
			pack();
			this.setSize(497, 302);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
